{template 'member', 'header'}
<script type="text/javascript" src="{JS_PATH}formvalidator.js" charset="UTF-8"></script>
<script type="text/javascript" src="{JS_PATH}formvalidatorregex.js" charset="UTF-8"></script>
<link href="{CSS_PATH}dialog.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="{JS_PATH}dialog.js"></script>
<script language="JavaScript">
<!--
$(function(){
	$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
	$("#nickname").formValidator({onshow:"{L('input').L('nickname')}",onfocus:"{L('nickname').L('between_2_to_20')}"}).inputValidator({min:2,max:20,onerror:"{L('nickname').L('between_2_to_20')}"}).regexValidator({regexp:"ps_username",datatype:"enum",onerror:"{L('nickname').L('format_incorrect')}"}).ajaxValidator({
	    type : "get",
		url : "",
		data :"m=member&c=index&a=public_checknickname_ajax&userid={$memberinfo[userid]}",
		datatype : "html",
		async:'false',
		success : function(data){
            if( data == "1" ) {
                return true;
			} else {
                return false;
			}
		},
		buttons: $("#dosubmit"),
		onerror : "{L('already_exist')}",
		onwait : "{L('connecting_please_wait')}"
	}).defaultPassed();

	{$formValidator}
});

//-->
</script>
<div id="memberArea">
	{template 'member', 'account_manage_left'}
	<div class="col-auto">
<div id="mainbody" class="newest">
	<div style="width:600px; margin-left:50px;">
<table width="600" height="30" border="0" align="center" cellpadding="0" cellspacing="0" class="dixian">
  <tr>
    <td align="left">{L('modify').L('memberinfo')}</td>
  </tr>
</table>
<form method="post" action="" id="myform" name="myform">
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0" class="zit02">
		<tr>
						<th  height="38" align="left">{L('nickname')}</th>
						<td align="left"><input id="nickname"   class="biank"  name="nickname" value="{$memberinfo['nickname']}" type="text"  size="30"></td>
					</tr>

					{loop $forminfos $k $v}
					<tr>
						<th  height="38" align="left">{if $v['isbase']}<font color=red>*</font>{/if} {$v['name']}：{if $v['tips']}<br />({$v['tips']}){/if}</th>
						<td align="left">{$v['form']}</td>
					</tr>
					{/loop}
  <tr>
    <td height="56">&nbsp;</td>
    <td height="19" align="left"><div><input type="submit" class="buttontj" value="{L('sub_data')}" name="dosubmit"></div></td>
  </tr>
</table>
</form>
</div>
</div>

	</div>
</div>
<div class="clear"></div>
{template 'member', 'footer'}


